<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>

    <body>
        <div id="app">{{name}}{{age}}</div>
        <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
        <script>
            const { createApp, reactive, toRefs } = Vue
            const App = {
                setup() {
                    let state = reactive({
                        name: 'well',
                        age: 18
                    })
                    return {
                        ...toRefs(state)
                    }
                }
            }
            createApp(App).mount('#app')
        </script>
    </body>
</html>
